
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>注册界面</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-wideh,initial-scale">
    <link rel="stylesheet" href=css/login.css>
    <script type="text/javascript">
        $(function () {
            $("#pagecode").click(function () {
                $("#pagecode").attr("src","/qfshop_war_exploded/code?method=createCode&t="+Math.random());
            });
        })
    </script>
</head>
<body>
<section>
    <!--背景色-->
    <div class="color"></div>
    <div class="color"></div>
    <div class="color"></div>
    <div class="box">
        <!--背景圆-->
        <div class="circlre" style="--x:0"></div>
        <div class="circlre" style="--x:1"></div>
        <div class="circlre" style="--x:2"></div>
        <div class="circlre" style="--x:3"></div>
        <div class="circlre" style="--x:4"></div>
        <!--登录框-->
        <div class="container">
            <div class="form">
                <form action="RegisterServlet" method="post">
                    <h2>用户注册</h2>
                    <div class="inputBox">
                        <input type="text" placeholder="用户名" name="id">
                    </div>
                    <div class="inputBox">
                        <input type="text" placeholder="姓名" name="name">
                    </div>
                    <div class="inputBox">
                        <input type="text" placeholder="性别" name="sex">
                    </div>
                    <div class="inputBox">
                        <input type="password" placeholder="密码" name="password">
                    </div>
                    <div class="inputBox">
                        <input type="text" placeholder="身份:运动员2裁判员3志愿者4"name="identity" id="identity" required="required">
                    </div>
                    <div class="inputBox">
                        <input type="text" placeholder="验证码" name="verifyCode" id="verifyCode" required="required">
                        <img src="CodeServlet" id="code"><a href="register.jsp" onclick="fresh()">看不清</a>
                    </div>
        <%
            String info = (String) session.getAttribute("loginInfo");
            if (info != null){
                out.print(info);
            }
        %>
                <div class="inputBox">
                    <input type="submit" value="注册">
                </div>
          <span style="text-align: center">${msg}</span>
            </form>
            </div>
        </div>
    </div>
</section>

</body>
</html>
